<template>
	<view>
		<!-- #ifndef MP-TOUTIAO -->
		<u-navbar title-color="#000" :is-back="true" back-icon-color="#000" :title-size="32" title="钟意"
			background="transparent" :custom-back="customBack" style="position: absolute;top: 0;left: 0;">
		</u-navbar>
		<!-- #endif -->
		<!-- <aiIm :chatId="chatId" :agentId="agentId" :storyId="storyId" :gameId="gameId"></aiIm> -->
	</view>
</template>

<script>
	// import aiIm from "@/components/ai-single-chat/index.vue";
	export default {
		components: {
			// aiIm,
		},
		data() {
			return {
				chatId: "",
				agentId: "",
				gameId: "",
				storyId: "",
			};
		},
		onLoad(option) {
			let {
				agentId,
				gameId,
				storyId,
				chatId
			} = option

			this.agentId = agentId;
			this.chatId = chatId;
			this.gameId = gameId;
			this.storyId = storyId;

		},
		onReady() {},
		methods: {
			customBack() {
				uni.redirectTo({
					url: `/pages/game/chatList/index?goodsId=${this.gameId}`,
				})
			},
		},
	};
</script>

<style lang='scss' scoped>
	@import url("./index.scss");
</style>